class Matrix4DataModel {
  late double dx;
  late double dy;
  late double scaleX;
  late double scaleY;
  late final double rotationAngle;
  late final double skewX;
  late final double skewY;

  Matrix4DataModel({
    required this.dx,
    required this.dy,
    required this.scaleX,
    required this.scaleY,
    required this.rotationAngle,
    required this.skewX,
    required this.skewY,
  });

  Matrix4DataModel.fromJson(Map<String, dynamic> json) {
    dx = json['dx'];
    dy = json['dy'];
    scaleX = json['scaleX'];
    scaleY = json['scaleY'];
    rotationAngle = json['rotationAngle'];
    skewX = json['skewX'];
    skewY = json['skewY'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['dx'] = dx;
    data['dy'] = dy;
    data['scaleX'] = scaleX;
    data['scaleY'] = scaleY;
    data['rotationAngle'] = rotationAngle;
    data['skewX'] = skewX;
    data['skewY'] = skewY;
    return data;
  }
}
